package com.cheng.example.atguigu.view2;

import java.util.Random;

/**
 * oom之java heap space
 */
public class Client82 {


    public static void main(String[] args) {
        String name = "chengshuai";
//OutOfMemoryError
//        name += name;
//        System.out.println(name);

        String[]  strings=new String[1024 * 1024 * 1024];

//        while (true) {
//            name +=name+new Random().nextInt(11111111)+new Random().nextInt(22222222);
//            name.intern();
//        }
    }
}
